﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;
using Aandelendelen.Db;

namespace Aandelendelen.Daily
{
	public class DeleteDeregistered : DailyJob
	{
		public DeleteDeregistered(XmlNode jobNode)
			: base(jobNode, "Deleting deregistered members...")
		{
		}

		public override void Execute()
		{
			this.OnStart();

			try
			{
				this.queries.Add(new Query("sp_deletederegistered"));
			}
			catch (Exception e)
			{
				this.OnError(e);
			}

			this.OnEnd();
		}
	}
}